<?php


$file = '/data/wwwroot/static.images/words/words_all.log';

try {

    $instance = new CFileSystem($file);
    $c = $instance->read();
    $arr = explode("\n", $c);

    var_dump(count($arr));

} catch (Exception $e) {

    print_r($e->getMessage());
}

